//
//  SetUpViewController.m
//  InSuger
//
//  Created by dllo on 15/12/1.
//  Copyright © 2015年 Dior_3g. All rights reserved.
//

#import "SetUpViewController.h"
#import "BaseTableView.h"
@interface SetUpViewController ()
@property(nonatomic, strong)UITableView *tableView;
@property(nonatomic, strong)NSMutableArray *tableArray;
@property(nonatomic, strong)UIImageView *image;
@end

@implementation SetUpViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationItem.title = @"更多";
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor]}];
    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
    [self tableViewCreateData];
    
}

- (void)tableViewCreateData
{
    self.tableView = [[BaseTableView alloc] initWithFrame:CGRectMake(0, 22, WIDTH, HEIGHT) style:UITableViewStylePlain superView:self.view delegate:self rowHeight:HEIGHT / 10 separatorStyle:YES showsVerticalScrollIndicator:YES showsHorizontalScrollIndicator:NO header:nil];
    [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"reuse"];
    self.tableArray = [NSMutableArray arrayWithObjects:@"1", @"2", @"3", @"4", nil];
    self.image = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"10.jpg"]];
    self.image.image = [UIImage imageNamed:@"ccc"];
    [self.tableView setBackgroundView:self.image];
    
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return self.tableArray.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"reuse" forIndexPath:indexPath];
    cell.backgroundColor = [UIColor clearColor];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;   //    /无色
    cell.textLabel.text = self.tableArray[indexPath.row];
    return cell;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
